package string;

import java.util.Locale;
import java.util.Scanner;

public class ToUpperCaseDemo {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String code ="3H5F6ds";
        System.out.println("请输入验证码" + code);
        String input = scanner.toString();
        input = input.toUpperCase(Locale.ROOT);
        code = code.toUpperCase(Locale.ROOT);
        if (input.equalsIgnoreCase(code)) {
            System.out.println("正确");
        }else {
            System.out.println("错误");
        }



    }
}
